import numpy as np
import matplotlib.pyplot as plt


def sigmoid(t):
    return 1.0 / (1 + np.exp(-t))


